package demo1104.demo01;

import java.util.function.BiPredicate;
import java.util.function.Predicate;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/4 16:07
 */
public class TestInst02 {
    public static void main(String[] args) {
        //BiPredicate<Integer,Integer> predicate = (i1,i2)->i1==i2;
        BiPredicate<Integer,Integer> predicate =Integer::equals;
        boolean test = predicate.test(5, 6);
        System.out.println(test);
    }
}
